package com.cxso.example.domain.wlpt.goods;

import com.cxso.example.enums.wlpt.IsInvoiceEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Setter
@Getter
@Accessors(chain = true)
@Schema(description = "货源基础信息")
public class ApiGoodsBasicDomain {

    @Schema(description = "承运平台")
    @NotBlank(message = "承运平台不能为空")
    private String bodyId;

    @Schema(description = "客户货源单号")
    private String goodsCode;

    @Schema(description = "是否开票")
    @NotNull(message = "是否开票不能为空")
    private IsInvoiceEnum isInvoice;

}
